#include "global.h"

PcikBot* g_pcik_bot = NULL;

bool global_pcik_bot_new()
{
	if (NULL == g_pcik_bot)
	{
		g_pcik_bot = pcik_bot_new();
		if (NULL == g_pcik_bot)
			return false;

		pcik_bot_init(g_pcik_bot);
	}

	return true;
}

PcikBot* get_global_pcik_bot()
{
	return g_pcik_bot;
}

void global_pcik_bot_delete()
{
	if (NULL != get_global_pcik_bot())
	{
		pcik_bot_delete(g_pcik_bot);
	}
}